<?xml version="1.0"?>

<st-source>
<time-stamp>From VisualWorks® NonCommercial, 7.5 of April 16, 2007 on October 19, 2007 at 12:16:54 pm</time-stamp>


<class>
<name>Encounter</name>
<environment>SpaceTrader</environment>
<super>Core.Object</super>
<private>false</private>
<indexed-type>none</indexed-type>
<inst-vars>opponent state </inst-vars>
<class-inst-vars></class-inst-vars>
<imports></imports>
<category>SpaceTrader</category>
<attributes>
<package>SpaceTrader</package>
</attributes>
</class>

<!-- -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -   -->


<methods>
<class-id>SpaceTrader.Encounter class</class-id> <category>instance creation</category>

<body package="SpaceTrader" selector="new">new
	"Answer a newly created and initialized instance."

	^super new initialize</body>
</methods>

<!-- -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -   -->


<comment>
<class-id>SpaceTrader.Encounter</class-id>
<body>Encounters are generated by the TravelTo method and are pushed onto a stack for the player to deal with before the player can land.

Instance Variables:
	opponent	&lt;NPC&gt;		An NPC which the player must deal with before proceeding
	state	&lt;Object&gt;	Can choose to ignore or flee.

</body>
</comment>

<methods>
<class-id>SpaceTrader.Encounter</class-id> <category>accessing</category>

<body package="SpaceTrader" selector="opponent">opponent
	^opponent</body>

<body package="SpaceTrader" selector="opponent:">opponent: anObject
	opponent := anObject</body>

<body package="SpaceTrader" selector="state">state
	^state</body>

<body package="SpaceTrader" selector="state:">state: anObject
	state := anObject</body>
</methods>

<methods>
<class-id>SpaceTrader.Encounter</class-id> <category>initialize-release</category>

<body package="SpaceTrader" selector="initialize">initialize
	"Initialize a newly created instance. This method must answer the receiver."

	" *** Edit the following to properly initialize instance variables ***"
	opponent := nil.
	state := nil.
	" *** And replace this comment with additional initialization code *** "
	^self</body>
</methods>

</st-source>
